Wassim's picture
Create app.py
9b8951e
raw
history blame
No virus
626 Bytes
import os
import gradio as gr
read_key = os.environ.get('hf_space_api_key', None)
with gr.Blocks() as demo:
gr.load("Wassim/deutsches-gesetz-chatbot", hf_token=read_key, src="spaces")
# Overwrite the first two tabs with a "work in progress" message
with app:
with gr.Tab("Tab 1 - Work in Progress"):
gr.Markdown("## Work in Progress\nThis section is currently under development.")
with gr.Tab("Tab 2 - Work in Progress"):
gr.Markdown("## Work in Progress\nThis section is currently under development.")
# Assuming the third tab is to be kept as is
# ...
# Launch the app
app.launch()