Spaces:
Runtime error
Runtime error
Update app.py
Browse files2 unmodified lines34567899 unmodified lines192021222324252 unmodified linesimport gradio as gr# Dify APIの設定DIFY_API_KEY = "app-8x9JbM0jQJXWH2TB71WcAcqE"def run_dify_workflow(text):headers = {9 unmodified linesresponse = requests.post(f"https://api.dify.ai/v1/workflows/run", headers=headers, json=data)try:response.raise_for_status()return response.json()["data"]["outputs"]["result"]except requests.exceptions.HTTPError as err:return f"Error: {str(err)}, Response: {response.text}"2 unmodified lines34567899 unmodified lines192021222324252 unmodified linesimport gradio as gr# Dify APIの設定DIFY_API_KEY = "app-ltrOOWWJr33Y5ksEDMumfCgJ"def run_dify_workflow(text):headers = {9 unmodified linesresponse = requests.post(f"https://api.dify.ai/v1/workflows/run", headers=headers, json=data)try:response.raise_for_status()return response.json()["data"]["outputs"]["output"]except requests.exceptions.HTTPError as err:return f"Error: {str(err)}, Response: {response.text}"
app.py+2-2