Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,14 +39,11 @@ class Solution(object):
|
|
39 |
|
40 |
textbox2 = gr.Textbox()
|
41 |
|
42 |
-
image_code = gr.Image(value = "https://huggingface.co/spaces/PinoCorgi/CodeExplainerPython/blob/main/code.jpg")
|
43 |
-
image_output = gr.Image(value = "https://huggingface.co/spaces/PinoCorgi/CodeExplainerPython/blob/main/output.jpg")
|
44 |
-
|
45 |
-
demo = gr.Interface(fn = generate_text, inputs = textbox1, outputs = textbox2)
|
46 |
-
|
47 |
-
image_code
|
48 |
-
image_output
|
49 |
-
|
50 |
if __name__ == "__main__":
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
52 |
demo.launch()
|
|
|
39 |
|
40 |
textbox2 = gr.Textbox()
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
if __name__ == "__main__":
|
43 |
+
with gr.Blocks() as demo:
|
44 |
+
gr.TextBox("The Inference Takes about 1 min 30 seconds")
|
45 |
+
gr.Interface(fn = generate_text, inputs = textbox1, outputs = textbox2)
|
46 |
+
with gr.Row():
|
47 |
+
gr.Image(value = "code.jpg")
|
48 |
+
gr.Image(value = "output.jpg")
|
49 |
demo.launch()
|