sk007msd commited on
Commit
adf9a6b
·
verified ·
1 Parent(s): 5dec7bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/meta-llama/Llama-3.2-1B"
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=7863)
 
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)