PinoCorgi commited on
Commit
98dbfb1
1 Parent(s): 4d27fab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
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
- print(f"The Inference will take approximately 1 min 30 Seconds. Attached are example images of input and output.")
 
 
 
 
 
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()