ShankarC commited on
Commit
0573f05
·
verified ·
1 Parent(s): 09b949a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -13
app.py CHANGED
@@ -1,17 +1,15 @@
 
1
  import gradio as gr
2
 
3
- css = """
4
- #my-row {
5
- border: 2px solid black; /* Thickness and color of border */
6
- border-radius: 8px; /* Optional: rounded corners */
7
- padding: 10px; /* Optional: inner spacing */
8
- margin-bottom: 10px; /* Optional: spacing below the row */
9
- }
10
- """
11
 
12
- with gr.Blocks(css=css) as demo:
13
- with gr.Row(elem_id="my-row"):
14
- gr.Textbox(label="Input 1")
15
- gr.Textbox(label="Input 2")
16
 
17
- demo.launch()
 
 
 
 
 
 
 
1
+ import os
2
  import gradio as gr
3
 
4
+ # Replace with your private Space repo ID, e.g. "username/private-space-name"
5
+ PRIVATE_SPACE_ID = "ShankarC/StockAdvisorCL"
 
 
 
 
 
 
6
 
7
+ hf_token = os.getenv("HF_TOKEN") # Set this in your public Space secrets
 
 
 
8
 
9
+ demo = gr.Interface.load(
10
+ PRIVATE_SPACE_ID,
11
+ hf_token=hf_token
12
+ )
13
+
14
+ if __name__ == "__main__":
15
+ demo.launch()