Spaces:
Running
Running
initial commit
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🐠
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: red
|
|
@@ -7,6 +7,9 @@ sdk: static
|
|
| 7 |
pinned: false
|
| 8 |
app_build_command: npm run build
|
| 9 |
app_file: build/index.html
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# Getting Started with Create React App
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Zai Org GLM 4.6rr
|
| 3 |
emoji: 🐠
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: red
|
|
|
|
| 7 |
pinned: false
|
| 8 |
app_build_command: npm run build
|
| 9 |
app_file: build/index.html
|
| 10 |
+
hf_oauth: true
|
| 11 |
+
hf_oauth_scopes:
|
| 12 |
+
- inference-api
|
| 13 |
---
|
| 14 |
|
| 15 |
# Getting Started with Create React App
|
app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
with gr.Blocks(fill_height=True) as demo:
|
| 4 |
+
with gr.Sidebar():
|
| 5 |
+
gr.Markdown("# Inference Provider")
|
| 6 |
+
gr.Markdown("This Space showcases the zai-org/GLM-4.6 model, served by the auto API. Sign in with your Hugging Face account to use this API.")
|
| 7 |
+
button = gr.LoginButton("Sign in")
|
| 8 |
+
gr.load("models/zai-org/GLM-4.6", accept_token=button, provider="auto")
|
| 9 |
+
|
| 10 |
+
demo.launch()
|