Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +9 -4
Gradio_UI.py
CHANGED
@@ -233,9 +233,7 @@ class GradioUI:
|
|
233 |
if not os.path.exists(file_upload_folder):
|
234 |
os.mkdir(file_upload_folder)
|
235 |
|
236 |
-
|
237 |
-
def on_example_click(example_text):
|
238 |
-
return example_text + " yay!!"
|
239 |
|
240 |
def interact_with_agent(self, prompt, messages):
|
241 |
import gradio as gr
|
@@ -306,9 +304,16 @@ class GradioUI:
|
|
306 |
"",
|
307 |
)
|
308 |
|
|
|
|
|
309 |
def launch(self, **kwargs):
|
|
|
310 |
import gradio as gr
|
311 |
-
|
|
|
|
|
|
|
|
|
312 |
with gr.Blocks(
|
313 |
title="Content Classifier",
|
314 |
fill_height=True,
|
|
|
233 |
if not os.path.exists(file_upload_folder):
|
234 |
os.mkdir(file_upload_folder)
|
235 |
|
236 |
+
|
|
|
|
|
237 |
|
238 |
def interact_with_agent(self, prompt, messages):
|
239 |
import gradio as gr
|
|
|
304 |
"",
|
305 |
)
|
306 |
|
307 |
+
|
308 |
+
|
309 |
def launch(self, **kwargs):
|
310 |
+
|
311 |
import gradio as gr
|
312 |
+
|
313 |
+
# Function for handling input change after selecting an example
|
314 |
+
def on_example_click(example_text):
|
315 |
+
return example_text + " yay!!"
|
316 |
+
|
317 |
with gr.Blocks(
|
318 |
title="Content Classifier",
|
319 |
fill_height=True,
|