Spaces:
Sleeping
Sleeping
Fix Gradio client token parameter
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ def extract_question(result: Any) -> tuple[str, list[dict[str, Any]], int]:
|
|
| 98 |
def call_asq(transcript: str, session: dict[str, Any]) -> tuple[str, list[dict[str, Any]], int]:
|
| 99 |
if not HF_TOKEN:
|
| 100 |
raise RuntimeError("HF_TOKEN is not configured")
|
| 101 |
-
client = Client(TARGET_SPACE_ID,
|
| 102 |
result = client.predict(
|
| 103 |
transcript,
|
| 104 |
session["history"],
|
|
|
|
| 98 |
def call_asq(transcript: str, session: dict[str, Any]) -> tuple[str, list[dict[str, Any]], int]:
|
| 99 |
if not HF_TOKEN:
|
| 100 |
raise RuntimeError("HF_TOKEN is not configured")
|
| 101 |
+
client = Client(TARGET_SPACE_ID, hf_token=HF_TOKEN, verbose=False)
|
| 102 |
result = client.predict(
|
| 103 |
transcript,
|
| 104 |
session["history"],
|