Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,15 +44,6 @@ def predict(message, chatbot, system_prompt="", temperature=0.9, max_new_tokens=
|
|
44 |
0.3, # int | float (numeric value between 0.0 and 1)
|
45 |
1, # int | float (numeric value between 1.0 and 2.0)
|
46 |
api_name="/chat_1")
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
# Gradio Demo
|
53 |
-
with gr.Blocks(theme=gr.themes.Base()) as demo:
|
54 |
-
gr.DuplicateButton()
|
55 |
-
gr.ChatInterface(predict, title=title, inputs="image", description=description, css=css, examples=examples)
|
56 |
-
|
57 |
|
58 |
-
demo.
|
|
|
|
44 |
0.3, # int | float (numeric value between 0.0 and 1)
|
45 |
1, # int | float (numeric value between 1.0 and 2.0)
|
46 |
api_name="/chat_1")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
demo = gr.Interface(predict, title=title, inputs="image", description=description, css=css, examples=examples)
|
49 |
+
demo.launch(theme=gr.themes.Base())
|