initial / app.py
Naresh Rangan
Add application file
660f6b5
{\rtf1\ansi\ansicpg1252\cocoartf2636
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 .AppleSystemUIFontMonospaced-Regular;}
{\colortbl;\red255\green255\blue255;\red147\green0\blue147;\red255\green255\blue255;\red24\green30\blue42;
\red50\green94\blue238;\red66\green147\blue62;}
{\*\expandedcolortbl;;\cssrgb\c65098\c14902\c64314;\cssrgb\c100000\c100000\c100000;\cssrgb\c12157\c16078\c21569;
\cssrgb\c25098\c47059\c94902;\cssrgb\c31373\c63137\c30980;}
\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\partightenfactor0
\f0\fs21 \cf2 \cb3 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec2 import\cf4 \strokec4 gradio \cf2 \strokec2 as\cf4 \strokec4 gr\
\
\cf2 \strokec2 def\cf4 \strokec4 \cf5 \strokec5 greet\cf4 \strokec4 (name):\
\cf2 \strokec2 return\cf4 \strokec4 \cf6 \strokec6 "Hello "\cf4 \strokec4 + name + \cf6 \strokec6 "!!"\cf4 \strokec4 \
\
iface = gr.Interface(fn=greet, inputs=\cf6 \strokec6 "text"\cf4 \strokec4 , outputs=\cf6 \strokec6 "text"\cf4 \strokec4 )\
iface.launch()\
}