Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ load_dotenv()
|
|
9 |
image_API="https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-2"
|
10 |
translation_API="https://api-inference.huggingface.co/models/facebook/nllb-200-distilled-1.3B"
|
11 |
whisper_API="https://api-inference.huggingface.co/models/openai/whisper-large-v3"
|
12 |
-
txt_API="https://api-inference.huggingface.co/models/
|
13 |
HF_TOKEN=os.getenv("HF_Token")
|
14 |
login(HF_TOKEN)
|
15 |
headers={"Authorization":f"Bearer {HF_TOKEN}"}
|
@@ -87,9 +87,9 @@ iface=gr.Interface(
|
|
87 |
outputs=[
|
88 |
gr.Textbox(label="Tamil Text"),
|
89 |
gr.Textbox(label="English Translation"),
|
90 |
-
gr.Image(label="Generated Image")
|
91 |
gr.Textbox(label="Story")
|
92 |
],
|
93 |
title="Speech-to-Image Generation"
|
94 |
)
|
95 |
-
iface.launch(share=True,server_name="0.0.0.0",server_port=
|
|
|
9 |
image_API="https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-2"
|
10 |
translation_API="https://api-inference.huggingface.co/models/facebook/nllb-200-distilled-1.3B"
|
11 |
whisper_API="https://api-inference.huggingface.co/models/openai/whisper-large-v3"
|
12 |
+
txt_API="https://api-inference.huggingface.co/models/openai-community/gpt2"
|
13 |
HF_TOKEN=os.getenv("HF_Token")
|
14 |
login(HF_TOKEN)
|
15 |
headers={"Authorization":f"Bearer {HF_TOKEN}"}
|
|
|
87 |
outputs=[
|
88 |
gr.Textbox(label="Tamil Text"),
|
89 |
gr.Textbox(label="English Translation"),
|
90 |
+
gr.Image(label="Generated Image")
|
91 |
gr.Textbox(label="Story")
|
92 |
],
|
93 |
title="Speech-to-Image Generation"
|
94 |
)
|
95 |
+
iface.launch(share=True,server_name="0.0.0.0",server_port=7861)
|