Spaces:
Running
Running
Update app.py
Browse files
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
|