Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,7 @@ if selected_task :
|
|
208 |
context_input = display_context(task)
|
209 |
if get_input(uploaded_input,url_input,text_input):
|
210 |
input = get_input(uploaded_input,url_input,text_input)
|
211 |
-
if prompt_input:
|
212 |
response = getattr(client, task)(input,question=prompt_input)
|
213 |
else:
|
214 |
response = getattr(client, task)(input)
|
|
|
208 |
context_input = display_context(task)
|
209 |
if get_input(uploaded_input,url_input,text_input):
|
210 |
input = get_input(uploaded_input,url_input,text_input)
|
211 |
+
if prompt_input is not None:
|
212 |
response = getattr(client, task)(input,question=prompt_input)
|
213 |
else:
|
214 |
response = getattr(client, task)(input)
|