vericudebuget commited on
Commit
53a61e6
·
verified ·
1 Parent(s): 63ab670

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -41,16 +41,6 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=904
41
  else:
42
  yield output
43
 
44
- if "<http" in output: # assuming the AI writes a direct image link in its response
45
- yield {"image": output} # Gradio will display the image
46
- else:
47
- yield output
48
-
49
- if "`http" in output: # assuming the AI writes a direct image link in its response
50
- yield {"image": output} # Gradio will display the image
51
- else:
52
- yield output
53
-
54
  additional_inputs = [
55
  gr.Textbox(label="System Prompt", max_lines=1, interactive=True),
56
  gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs"),
 
41
  else:
42
  yield output
43
 
 
 
 
 
 
 
 
 
 
 
44
  additional_inputs = [
45
  gr.Textbox(label="System Prompt", max_lines=1, interactive=True),
46
  gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs"),