tahercoolguy commited on
Commit
4eb1ca1
1 Parent(s): b42f60a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,7 +42,7 @@ def generate(prompt: str, seed: int) -> str:
42
  if seed == -1:
43
  seed = random.randint(0, 1000000)
44
  torch.manual_seed(seed)
45
- return "Text"
46
 
47
 
48
  examples = [
@@ -81,8 +81,8 @@ with gr.Blocks(css='style.css') as demo:
81
  fn=generate,
82
  cache_examples=os.getenv('SYSTEM') == 'spaces')
83
 
84
- prompt.submit(fn=generate, inputs=inputs, outputs=result)
85
- run_button.click(fn=generate, inputs=inputs, outputs=result)
86
 
87
  with gr.Accordion(label='Biases and content acknowledgment', open=False):
88
  gr.HTML("""<div class="acknowledgments">
 
42
  if seed == -1:
43
  seed = random.randint(0, 1000000)
44
  torch.manual_seed(seed)
45
+ return "text"
46
 
47
 
48
  examples = [
 
81
  fn=generate,
82
  cache_examples=os.getenv('SYSTEM') == 'spaces')
83
 
84
+ # prompt.submit(fn=generate, inputs=inputs, outputs=result)
85
+ # run_button.click(fn=generate, inputs=inputs, outputs=result)
86
 
87
  with gr.Accordion(label='Biases and content acknowledgment', open=False):
88
  gr.HTML("""<div class="acknowledgments">