Ryan Shrott commited on
Commit ·
9560ced
1
Parent(s): ecac5bc
commit
Browse files- __pycache__/gradio_app.cpython-310.pyc +0 -0
- app.py +7 -0
- gradio_app.py +0 -1
__pycache__/gradio_app.cpython-310.pyc
ADDED
|
Binary file (996 Bytes). View file
|
|
|
app.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# app.py
|
| 2 |
+
from gradio_app import iface
|
| 3 |
+
from huggingface_hub import HfApi
|
| 4 |
+
|
| 5 |
+
hf = HfApi()
|
| 6 |
+
repo_url = hf.create_repo("test2", token="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", repo_type="spaces", exist_ok=True)
|
| 7 |
+
iface.launch(debug=True, share=True, huggingface_space=repo_url)
|
gradio_app.py
CHANGED
|
@@ -21,4 +21,3 @@ iface = gr.Interface(
|
|
| 21 |
description="Enter your text and get a summary using the Hugging Face T5 model.",
|
| 22 |
)
|
| 23 |
|
| 24 |
-
iface.launch(share=True) # Set share=True to get a public link to share the app.
|
|
|
|
| 21 |
description="Enter your text and get a summary using the Hugging Face T5 model.",
|
| 22 |
)
|
| 23 |
|
|
|