rocioadlc commited on
Commit
ad271ab
verified
1 Parent(s): d85f4db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -96,7 +96,7 @@ image_gradio_app = gr.Interface(
96
  fn=predict_image,
97
  inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
98
  outputs=[gr.Label(label="Result")],
99
- title=title,
100
  theme=theme
101
  )
102
 
@@ -194,7 +194,7 @@ def chat_interface(question,history):
194
 
195
  chatbot_gradio_app = gr.ChatInterface(
196
  fn=chat_interface,
197
- title=title
198
  )
199
 
200
  # Combine both interfaces into a single app
@@ -204,5 +204,13 @@ app = gr.TabbedInterface(
204
  theme=theme
205
  )
206
 
207
- app.queue()
208
- app.launch()
 
 
 
 
 
 
 
 
 
96
  fn=predict_image,
97
  inputs=gr.Image(label="Image", sources=['upload', 'webcam'], type="pil"),
98
  outputs=[gr.Label(label="Result")],
99
+ title="Green Greta",
100
  theme=theme
101
  )
102
 
 
194
 
195
  chatbot_gradio_app = gr.ChatInterface(
196
  fn=chat_interface,
197
+ title="Green Greta"
198
  )
199
 
200
  # Combine both interfaces into a single app
 
204
  theme=theme
205
  )
206
 
207
+ with gr.Blocks() as demo:
208
+ # Muestra la imagen y el texto
209
+ gr.Markdown(title)
210
+ # Agrega espacio vertical entre la imagen y el texto y la siguiente secci贸n
211
+ gr.Markdown(" \n ")
212
+ # Agrega el clasificador de im谩genes y el chatbot debajo
213
+ app.launch()
214
+
215
+ demo.queue()
216
+ demo.launch()