| import gradio as gr |
|
|
| def process_racing_data(text, intensity): |
| |
| result = f"RacingPlanet Analyse für: '{text}'\nIntensitätsstufe: {intensity}\nStatus: Bereit für arXiv-Integration." |
| return result |
|
|
| |
| with gr.Blocks(theme=gr.themes.Soft()) as demo: |
| gr.Markdown( |
| """ |
| # 🏎️ Gradi_RP (RacingPlanet Interface) |
| Willkommen beim Interface für dein Projekt. Du kannst hier Texte analysieren oder Modellparameter testen. |
| """ |
| ) |
| |
| with gr.Row(): |
| with gr.Column(): |
| input_text = gr.Textbox(label="Input Text", placeholder="Gib hier Daten oder Paper-Inhalte ein...") |
| slider = gr.Slider(minimum=1, maximum=100, value=50, label="Verarbeitungs-Intensität") |
| btn = gr.Button("Analyse starten", variant="primary") |
| |
| with gr.Column(): |
| output = gr.Textbox(label="Ergebnis") |
|
|
| |
| btn.click(fn=process_racing_data, inputs=[input_text, slider], outputs=output) |
|
|
| |
| if __name__ == "__main__": |
| demo.launch() |
|
|