Spaces:
Runtime error
Runtime error
File size: 746 Bytes
65581f0 60d7e20 65581f0 60d7e20 65581f0 60d7e20 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
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()
|