Spaces:
Runtime error
Runtime error
| from __future__ import annotations | |
| from typing import TYPE_CHECKING | |
| if TYPE_CHECKING: | |
| from collections.abc import Iterator | |
| import gradio as gr | |
| def generate(message: str, history: list[dict]) -> Iterator[str]: | |
| yield "hello" | |
| demo = gr.ChatInterface(fn=generate) | |
| demo.launch() | |