Reality123b commited on
Commit
6e7746d
·
verified ·
1 Parent(s): 6462b69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -1,6 +1,5 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
- import os
4
 
5
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
6
 
@@ -57,8 +56,6 @@ demo = gr.ChatInterface(
57
  ],
58
  )
59
 
60
- # Launch the Gradio app and print the URL
61
  if __name__ == "__main__":
62
- demo.launch(share=True) # Set to True to share on Hugging Face Spaces
63
- # Print the URL for the Hugging Face Space
64
- print(f"Your Hugging Face Space is live at: {os.environ['SPACE_URL']}")
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
3
 
4
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
5
 
 
56
  ],
57
  )
58
 
59
+ # Launch the Gradio app and enable API
60
  if __name__ == "__main__":
61
+ demo.launch(share=True, enable_queue=True) # Set to True to share on Hugging Face Spaces