Spaces:
Runtime error
Runtime error
import gradio as gr | |
from chatgpt_conversation_parser.main import fetch_and_parse_conversation | |
with gr.Blocks() as demo: | |
gr.Markdown( | |
""" | |
# ChatGPT Conversation Parser | |
This is a simple tool to fetch and parse a conversation from ChatGPT's web interface. | |
Enter the URL of the conversation to fetch and parse. The tool will return a JSONL file and the parsed conversation. | |
""".strip() | |
) | |
gr.Interface( | |
fn=fetch_and_parse_conversation, | |
inputs=["text"], | |
outputs=[gr.DownloadButton(label="Download JSONL"), gr.JSON()], | |
) | |
gr.Markdown( | |
""" | |
Made with ❤️ by [Berat Çimen](https://www.beratcimen.com/). | |
""".strip() | |
) | |
demo.launch() | |