Spaces:
Build error
Build error
Update app.py
Browse files12369 unmodified lines73747576# Speckle stream and authentication informationspeckle_token = os.getenv("SPECKLE_TOKEN")speckle_server_url = "https://speckle.xyz/"69 unmodified linesbranch_data = extract_branch_info(stream_id, server_url=speckle_server_url, token=speckle_token)await send_data(branch_data)return "All streams updated successfully!"12345678910111269 unmodified lines828384858687888990919293949596import osimport jsonimport requestsfrom specklepy.api.client import SpeckleClientfrom fastapi import Requestimport websocketsimport asynciofrom huggingface_hub import webhook_endpoint# Speckle stream and authentication informationspeckle_token = os.getenv("SPECKLE_TOKEN")speckle_server_url = "https://speckle.xyz/"69 unmodified linesbranch_data = extract_branch_info(stream_id, server_url=speckle_server_url, token=speckle_token)await send_data(branch_data)return "All streams updated successfully!"# Uncomment below if you want to use Gradio for a manual interface"""import gradio as griface = gr.Interface(fn=update_streams,inputs=gr.components.Button(value="Update Streams"),outputs="text",)iface.launch()"""
app.py+21-1