Spaces:
Sleeping
Sleeping
File size: 626 Bytes
9b8951e 451e7af 9b8951e 451e7af 9b8951e 451e7af 9b8951e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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()
|