prithivMLmods commited on
Commit
586d1ef
·
verified ·
1 Parent(s): 2802027

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
 
3
- def main():
4
  # Define the components using the specified URLs
5
  with gr.Blocks() as chatbot:
6
  gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Mistral-7B-Instruct-v0.3' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
@@ -22,7 +22,7 @@ def main():
22
 
23
  # Assemble the components into a single Gradio interface
24
  demo = gr.Interface(
25
- fn=None,
26
  title="ChatGPT-Omni",
27
  theme="soft",
28
  layout="tabbed",
@@ -51,7 +51,4 @@ def main():
51
  )
52
 
53
  # Launch the demo
54
- demo.launch()
55
-
56
- # Run the main function
57
- main()
 
1
  import gradio as gr
2
 
3
+ def spaces_Omni():
4
  # Define the components using the specified URLs
5
  with gr.Blocks() as chatbot:
6
  gr.HTML("<iframe src='https://huggingface.co/spaces/prithivMLmods/Mistral-7B-Instruct-v0.3' width='100%' height='1000px' style='border-radius: 8px;'></iframe>")
 
22
 
23
  # Assemble the components into a single Gradio interface
24
  demo = gr.Interface(
25
+ fn=spaces_Omni,
26
  title="ChatGPT-Omni",
27
  theme="soft",
28
  layout="tabbed",
 
51
  )
52
 
53
  # Launch the demo
54
+ demo.launch()