Faizal2805 commited on
Commit
317d585
·
verified ·
1 Parent(s): 8377ba5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -59,8 +59,7 @@ demo = gr.ChatInterface(
59
  ],
60
  )
61
 
62
-
63
- if _name_ == "_main_":
64
  demo.launch()
65
 
66
  # Fine-Tuning GPT-2 on Hugging Face Spaces (Streaming 40GB Dataset, No Storage Issues)
@@ -154,4 +153,4 @@ def generate_response(prompt):
154
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
155
 
156
  demo = gr.Interface(fn=generate_response, inputs="text", outputs="text")
157
- demo.launch()
 
59
  ],
60
  )
61
 
62
+ if __name__ == "__main__":
 
63
  demo.launch()
64
 
65
  # Fine-Tuning GPT-2 on Hugging Face Spaces (Streaming 40GB Dataset, No Storage Issues)
 
153
  return tokenizer.decode(outputs[0], skip_special_tokens=True)
154
 
155
  demo = gr.Interface(fn=generate_response, inputs="text", outputs="text")
156
+ demo.launch()