Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -208,6 +208,9 @@ 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 |
response = getattr(client, task)(input)
|
212 |
elif prompt_input:
|
213 |
if context_input is not None:
|
|
|
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,prompt=prompt_input)
|
213 |
+
else:
|
214 |
response = getattr(client, task)(input)
|
215 |
elif prompt_input:
|
216 |
if context_input is not None:
|