Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def respond(message, history: list[tuple[str, str]], model, system_message, max_
|
|
103 |
response += token
|
104 |
yield response
|
105 |
|
106 |
-
|
107 |
demo = gr.ChatInterface(
|
108 |
respond,
|
109 |
stop_btn = "Stop generation",
|
@@ -120,7 +120,7 @@ if mode == "text-to-text":
|
|
120 |
]
|
121 |
)
|
122 |
|
123 |
-
|
124 |
demo = gr.ChatInterface(
|
125 |
respond,
|
126 |
stop_btn = "Stop generation",
|
|
|
103 |
response += token
|
104 |
yield response
|
105 |
|
106 |
+
while mode == "text-to-text":
|
107 |
demo = gr.ChatInterface(
|
108 |
respond,
|
109 |
stop_btn = "Stop generation",
|
|
|
120 |
]
|
121 |
)
|
122 |
|
123 |
+
while mode == "image-to-text":
|
124 |
demo = gr.ChatInterface(
|
125 |
respond,
|
126 |
stop_btn = "Stop generation",
|