LucasUn commited on
Commit
d06809a
·
verified ·
1 Parent(s): aefa501

Fix Gradio client token parameter

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, token=HF_TOKEN, verbose=False)
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"],