skyvern / app.py
history008's picture
Update app.py
ecba09f verified
raw
history blame contribute delete
698 Bytes
import gradio as gr
# Try to import Skyvern
try:
import skyvern
SKYVERN_VERSION = skyvern.__version__
except Exception as e:
SKYVERN_VERSION = f"Error importing Skyvern: {e}"
def run_test():
try:
# Normally you'd create a task here, but we'll just simulate for testing
msg = f"✅ Skyvern is installed! Version: {SKYVERN_VERSION}"
return msg
except Exception as e:
return f"❌ Error: {e}"
# Simple Gradio interface
iface = gr.Interface(
fn=run_test,
inputs=[],
outputs="text",
title="Skyvern Test",
description="Click 'Submit' to check if Skyvern is working in this Space."
)
if __name__ == "__main__":
iface.launch()