newly / app.py
history008's picture
Create app.py
6a4ebca verified
raw
history blame contribute delete
512 Bytes
import gradio as gr
from skyvern import Skyvern # Ensure Skyvern import works
# Initialize Skyvern AI
sky = Skyvern()
def process_task(user_input):
try:
result = sky.run_task(user_input)
except Exception as e:
result = f"Error: {e}"
return result
# Gradio interface
iface = gr.Interface(
fn=process_task,
inputs=gr.Textbox(label="Enter your task"),
outputs=gr.Textbox(label="Skyvern Output"),
title="Skyvern AI App"
)
if __name__ == "__main__":
iface.launch()