Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,9 @@ def respond(message, history: list[tuple[str, str]], model, system_message, max_
|
|
104 |
response += token
|
105 |
yield response
|
106 |
|
107 |
-
|
|
|
|
|
108 |
|
109 |
|
110 |
demo = gr.ChatInterface(
|
@@ -125,8 +127,7 @@ demo = gr.ChatInterface(
|
|
125 |
|
126 |
],
|
127 |
|
128 |
-
|
129 |
-
image = Image.open(requests.get(url, stream=True).raw)
|
130 |
)
|
131 |
|
132 |
|
|
|
104 |
response += token
|
105 |
yield response
|
106 |
|
107 |
+
else:
|
108 |
+
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/0052a70beed5bf71b92610a43a52df6d286cd5f3/diffusers/rabbit.jpg"
|
109 |
+
image = Image.open(requests.get(url, stream=True).raw)
|
110 |
|
111 |
|
112 |
demo = gr.ChatInterface(
|
|
|
127 |
|
128 |
],
|
129 |
|
130 |
+
|
|
|
131 |
)
|
132 |
|
133 |
|