yabramuvdi commited on
Commit
175fea5
·
verified ·
1 Parent(s): 2d9ab22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -85,4 +85,9 @@ demo = gr.Interface(
85
  ],
86
  title="Interactive Text Generation",
87
  description="Generate text by selecting predicted tokens or writing your own."
88
- )
 
 
 
 
 
 
85
  ],
86
  title="Interactive Text Generation",
87
  description="Generate text by selecting predicted tokens or writing your own."
88
+ )
89
+
90
+ if __name__ == "__main__":
91
+ demo.launch()
92
+ else:
93
+ demo.launch(show_error=True) # Required for Hugging Face Spaces