File size: 379 Bytes
2c27a03
 
 
 
 
5d286f4
5282624
 
 
 
 
86881bb
2c27a03
 
5282624
2c27a03
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Chat Interface App
"""

import gradio as gr

# from axolotl.cli import print_axolotl_text_art
# print_axolotl_text_art()

import sys
sys.path.append('axolotl/src/axolotl/common/cli.py')
from cli import test_func

def generate(instruction):
    return "Hello " + instruction + "!" + test_func()

iface = gr.Interface(fn=generate, inputs="text", outputs="text")
iface.launch()