File size: 288 Bytes
0f0b328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()