Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,6 @@ from mlx_lm import convert
|
|
| 21 |
|
| 22 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 23 |
SPACE_ID = os.environ.get("SPACE_ID")
|
| 24 |
-
SPACE_HOST = os.environ.get("SPACE_HOST")
|
| 25 |
|
| 26 |
# I'm not sure if we need to add more stuff here
|
| 27 |
QUANT_PARAMS = {
|
|
@@ -157,9 +156,7 @@ css="""/* Custom CSS to allow scrolling */
|
|
| 157 |
# Create Gradio interface
|
| 158 |
with gr.Blocks(css=css) as demo:
|
| 159 |
gr.Markdown("You must be logged in to use MLX-my-repo.")
|
| 160 |
-
gr.LoginButton(
|
| 161 |
-
link=SPACE_HOST
|
| 162 |
-
)
|
| 163 |
|
| 164 |
model_id = HuggingfaceHubSearch(
|
| 165 |
label="Hub Model ID",
|
|
|
|
| 21 |
|
| 22 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 23 |
SPACE_ID = os.environ.get("SPACE_ID")
|
|
|
|
| 24 |
|
| 25 |
# I'm not sure if we need to add more stuff here
|
| 26 |
QUANT_PARAMS = {
|
|
|
|
| 156 |
# Create Gradio interface
|
| 157 |
with gr.Blocks(css=css) as demo:
|
| 158 |
gr.Markdown("You must be logged in to use MLX-my-repo.")
|
| 159 |
+
gr.LoginButton()
|
|
|
|
|
|
|
| 160 |
|
| 161 |
model_id = HuggingfaceHubSearch(
|
| 162 |
label="Hub Model ID",
|