Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def
|
| 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=
|
| 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()
|
|
|
|
|
|
|
|
|